package com.qfedu.edu.seckill.orderservice.service;

import com.qfedu.edu.seckill.bo.CreateOrderBack;
import com.qfedu.edu.seckill.bo.OrderShow;
import com.qfedu.edu.seckill.vo.CreateOrderVo;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

/**
 * @author xiaobobo
 * @title: IOrderService
 * @projectName cd-java-2404-seckill-parent
 * @description: TODO
 * @date 2025/2/6  10:25
 */
public interface IOrderService {

    /**
     * 创建订单
     * @param createOrderVo
     * @param request
     * @return
     */
    CreateOrderBack createOrder(CreateOrderVo createOrderVo, HttpServletRequest request) throws UnsupportedEncodingException;

    /**
     * 通过订单号 查询订单信息
     * @param orderNumber
     * @return
     */
    OrderShow listOrderByOrderNumber(String orderNumber);
}
